package com.sdstc.modules.eneity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author ：wk
 * @date ：Created in 2022/10/21 13:26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("org")
public class OrgEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String id;

    // 父id
    private String pid;

    // 机构名称
    @Excel(name = "机构名称", prompt = "机构名称")
    private String orgName;

    // 机构级别
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String orgLevel;

    // 机构类型
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String orgType;

    /**
    * 预设编制
    */
    // 行政
    @Excel(name = "行政", prompt = "行政")
    private Integer organizationAdmin;
    // 单列
    @Excel(name = "单列", prompt = "单列")
    private Integer organizationSingle;
    // 工勤
    @Excel(name = "工勤", prompt = "工勤")
    private Integer organizationWork;
    // 事业
    @Excel(name = "事业", prompt = "事业")
    private Integer organizationCause;

    /**
     * 职数及配备 start
     */
    // 部门领导正职
    private Integer departmentLead;

    // 部门领导副职
    private Integer departmentLeadDeputy;

    // 与部门领导同级别的其他领导
    private Integer sameDepartmentLead;

    // 内设机构领导正职
    private Integer internalLead;

    // 内设机构领导副职
    private Integer internalLeadDeputy;

    // 与内设机构领导同级别的其他领导
    private Integer sameInternalLead;

    /**
     * 职数及配备 end
     */

}
